package com.sc.admin.common;

public class MysqlQuery<T> {
	private int page;
	private int size;
	private T t;
	
	public MysqlQuery(int page,int size) {
		this.page = page;
		this.size = size;
	}
	
	public MysqlQuery(int page,int size,T t) {
		this.page = page;
		this.size = size;
		this.t = t;
	}

	public int getPage() {
		return page;
	}

	public int getSize() {
		return size;
	}
	
	//limit 分页查询的接口
	public int getLimit() {
		return (page-1)*size;
	}

	public T getT() {
		return t;
	}

	public void setT(T t) {
		this.t = t;
	}
}
